import request from '@/utils/request'

// 查询销售单产品列表
export function listBizOrderProduct (query) {
  return request({
    url: '/biz/bizOrderProduct/list',
    method: 'get',
    params: query
  })
}

// 查询销售单产品详细
export function getBizOrderProduct (id) {
  return request({
    url: '/biz/bizOrderProduct/' + id,
    method: 'get'
  })
}

// 新增销售单产品
export function addBizOrderProduct (data) {
  return request({
    url: '/biz/bizOrderProduct',
    method: 'post',
    data: data
  })
}

// 修改销售单产品
export function updateBizOrderProduct (data) {
  return request({
    url: '/biz/bizOrderProduct',
    method: 'put',
    data: data
  })
}

// 删除销售单产品
export function delBizOrderProduct (id) {
  return request({
    url: '/biz/bizOrderProduct/' + id,
    method: 'delete'
  })
}


// 导出销售单产品
export function exportBizOrderProduct (query) {
  return request({
    url: '/biz/bizOrderProduct/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizOrderProduct/getInitData/' + dictTypes,
    method: 'get'
  })
}
